﻿package src.interfaces 
{
	
	/**
	 * ...
	 * @author Louis Tovar
	 */
	public interface IRGBLEDMatrixDisplay extends ISimpleDisplayObject
	{
		/**
		 * Cues the Meggy's display buffer with a new value to draw
		 * @param	xin - target LED column
		 * @param	yin - target LED row
		 * @param	color - target LED color in hex between 0x000000 to 0xFFFFFF
		 */
		function DrawPx(xin:uint, yin:uint, color:uint):void;
		
		/**
		 * returns the color of the led at the given point
		 * @param	xin - target LED column
		 * @param	yin - target LED row
		 * @return Hex color between 0x000000 to 0xFFFFFF
		 */
		function ReadPx(xin:uint, yin:uint):uint;
		
		/**
		 * resets the Meggy's screen's pixels to all off
		 */
		function EmptyScreen():void;
		
		/**
		 * draws the Meggy's buffer to the screen
		 */
		function ShowScreen():void;
	}
	
}